import 'package:flutter/material.dart';
import 'package:flutter_house_manager/pages/Home/components/home_list.dart';
import 'package:flutter_house_manager/pages/Home/components/home_nav.dart';

class HomeView extends StatefulWidget {
  const HomeView({super.key});

  @override
  State<HomeView> createState() => _HomeViewState();
}

class _HomeViewState extends State<HomeView> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          centerTitle: true,
          title: const Text('享+社区'),
        ),
        body: ListView(
          children: [
            const HomeNav(),
            Image.asset(
              'assets/images/banner@2x.jpg',
              width: double.infinity,
              fit: BoxFit.cover,
            ),
            const HomeList(),
          ],
        ));
  }
}
